package cn.tutu.blockchain.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.tutu.blockchain.common.MsgObj;
import cn.tutu.blockchain.operation.entity.ActivityCategory;
import cn.tutu.blockchain.operation.service.OperationService;

/**
 * 运营相关
 * <p>
 * Title: OperationController
 * </p>
 * <p>
 * Description:
 * </p>
 * 
 * @author 眭善峰
 * @date 2018年12月10日
 *
 */
@RequestMapping("/operation")
@RestController
public class OperationController {

	@Autowired
	private OperationService operationService;

	@RequestMapping("/getActivityCategory")
	public MsgObj getGridByUser() {
		List<ActivityCategory> list = operationService.getActivityCategory();
		return MsgObj.buildSuccessObj(list);
	}
}
